package com.systop.supervise.service.Impl;

import com.systop.common.pojo.elective_course;
import com.systop.supervise.mapper.elective_courseServiceMapper;
import com.systop.supervise.service.elective_courseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class elective_courseServiceImpl implements elective_courseService {
    @Autowired
    private elective_courseServiceMapper electivecourseServiceMapper;
    @Override
    public List<elective_course> elcourall() {
        return electivecourseServiceMapper.elcourall();
    }

    @Override
    public int elcourdel(Integer student_elective_id) {
        return electivecourseServiceMapper.elcourdel(student_elective_id);
    }

    @Override
    public int eelcouradd(elective_course electivecourse) {
        return electivecourseServiceMapper.eelcouradd(electivecourse);
    }

    @Override
    public int elcourpdate(elective_course electivecourse) {
        return electivecourseServiceMapper.elcourpdate(electivecourse);
    }

    @Override
    public elective_course elcourid(Integer elective_course_id) {
        return electivecourseServiceMapper.elcourid(elective_course_id);
    }

    @Override
    public List<elective_course> elcourid1(Integer elective_course_id) {
        return electivecourseServiceMapper.elcourid1(elective_course_id);
    }

    @Override
    public List<elective_course> elcourtno(String tno) {
        return electivecourseServiceMapper.elcourtno(tno);
    }
}
